package typejump.commands;

import typejump.Messenger;
import typejump.TypeJump;
import typejump.engine.GameEngine;
import typejump.objects.Actor;

public class Fall implements TextCommand {

	@Override
	public boolean matches(String command) {
		return command.equalsIgnoreCase("fall");
	}

	@Override
	public void act(String command) {
		Actor player = TypeJump.getInst().getPlayer();
		Messenger.addBriefMessage("fall");
		if (player.vy() < 0)
			player.vy(0);
		GameEngine.addTextEffect("FALL", "fall");
	}

}
